<?php
/**
 * PHP version 5
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @package    Textbook
 * @subpackage General
 * @author     Aljaz Srebrnic <a2piratesoft@gmail.com>
 * @author     E. Pavletič
 * @copyright  2008 a2PirateSoftware
 * @license    GPL License v3 <http://www.gnu.org/copyleft/gpl.html>
 */

/**
 * Class Constants
 *
 * Razred vsebuje konstante/parametre aplikacije
 *
 * @package Textbook
 */
class Constants {
        // Ime in URL spletnega mesta
        public static $sitename = 'Sejem učbenikov';
        public static $siteUrl = 'bukve.potep.org';

        //Uporabnik ima 5 minut za izpolnit form.
        public static $COOKIE_EXPIRE_TIME = 1200;

	/**
	* Parametri za logger
	*/
	public static $handler = 'file';
	public static $name = 'log/textbook.log';
	public static $ident = '';
	public static $conf = array();
	public static $level = PEAR_LOG_DEBUG;
	/**
	*Parametri za e-mail
	*/
	public static $mailer = 'mail';
	public static $charset = 'utf-8';
	public static $contentType = 'text/html';
	public static $encoding = '8bit';
	public static $host = 'smtp.tele2.it';
	public static $port = '587';
	public static $smtpAuth = true;
	public static $username = 'g5pw@tele2.it';
	public static $password = '1LJ1zs2EB2ni3';
	public static $hostname = 'g5pw.homelinux.org'; //My hostname!
	public static $timeout = null;
	public static $smtpKeepAlive = false;
	public static $smtpDebug = 5;
	public static $from = 'g5pw@tele2.it';
	public static $fromName = 'Sejem ucbenikov';
	public static $cc = null;
	public static $bcc = null;
	public static $replyTo = 'g5pw@tele2.it';

	/**
	 * Parametri za pager
	 */
	public static $delta = 4;
	public static $pagingMode = 'Sliding';
	public static $limit = 20;

	/**
	 * Ko uporabnik ne najde učbenika, ki ga išče, si sistem zabeleži (pod določenimi pogoji - znani ISBN in ID uporabnika)
	 * zahtevo za "$searchedTextbooksRetainPeriod" dni. V tem obdobju, če nekdo vnese učbenik v bazo, sistem avtomatsko
	 * (po e-pošti) obvesti uporabnika o novem vnosu.
	 */
	public static $searchedTextbooksRetainPeriod = 180;

	/**
	 * Učbeniki, ki jih uporabniki vnašajo v bazo so avtomatsko izbrisani po določenem številu dni.
	 * Število dni določa atribut "$textbooksRetainPeriod".
	 */
	public static $textbooksRetainPeriod = 1095;
}
?>